//
//  scrollLayerViewController.m
//  scrollLayer
//
//  Created by wangjun on 11-7-24.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import "scrollLayerViewController.h"

#import "AdvertisingView.h"

@implementation scrollLayerViewController

- (void)dealloc
{
    [super dealloc];
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
    [super viewDidLoad];
    AdvertisingView	*myAdvertisingView=[[AdvertisingView alloc] initWithFrame:CGRectMake(87, 5, 188, 30)];
    [myAdvertisingView setBackgroundColor:[UIColor yellowColor]];
    [myAdvertisingView addAdvertisingList];	
    [self.view addSubview:myAdvertisingView];
    [myAdvertisingView release];
}


- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return YES;
}

@end
